package com.ruoyi.jhc.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.jhc.mapper.JhcWlwfMapper;
import com.ruoyi.jhc.domain.JhcWlwf;
import com.ruoyi.jhc.service.IJhcWlwfService;

/**
 * 物流外发录入Service业务层处理
 * 
 * @author lgx
 * @date 2022-10-27
 */
@Service
public class JhcWlwfServiceImpl implements IJhcWlwfService 
{
    @Autowired
    private JhcWlwfMapper jhcWlwfMapper;

    /**
     * 查询物流外发录入
     * 
     * @param cDate 物流外发录入主键
     * @return 物流外发录入
     */
    @Override
    public JhcWlwf selectJhcWlwfByCDate(String cDate)
    {
        return jhcWlwfMapper.selectJhcWlwfByCDate(cDate);
    }

    /**
     * 查询物流外发录入列表
     * 
     * @param jhcWlwf 物流外发录入
     * @return 物流外发录入
     */
    @Override
    public List<JhcWlwf> selectJhcWlwfList(JhcWlwf jhcWlwf)
    {
        return jhcWlwfMapper.selectJhcWlwfList(jhcWlwf);
    }

    /**
     * 新增物流外发录入
     * 
     * @param jhcWlwf 物流外发录入
     * @return 结果
     */
    @Override
    public int insertJhcWlwf(JhcWlwf jhcWlwf)
    {
        return jhcWlwfMapper.insertJhcWlwf(jhcWlwf);
    }

    /**
     * 修改物流外发录入
     * 
     * @param jhcWlwf 物流外发录入
     * @return 结果
     */
    @Override
    public int updateJhcWlwf(JhcWlwf jhcWlwf)
    {
        return jhcWlwfMapper.updateJhcWlwf(jhcWlwf);
    }

    /**
     * 批量删除物流外发录入
     * 
     * @param cDates 需要删除的物流外发录入主键
     * @return 结果
     */
    @Override
    public int deleteJhcWlwfByCDates(String[] cDates)
    {
        return jhcWlwfMapper.deleteJhcWlwfByCDates(cDates);
    }

    /**
     * 删除物流外发录入信息
     * 
     * @param cDate 物流外发录入主键
     * @return 结果
     */
    @Override
    public int deleteJhcWlwfByCDate(String cDate)
    {
        return jhcWlwfMapper.deleteJhcWlwfByCDate(cDate);
    }
}
